<%@taglib uri="/struts-tags" prefix="s"%>
<%@page pageEncoding="utf-8"%>

<html>
	<h1>
		<p>
			做有效的实验
		</p>
	</h1>

	<s:form action="validate" method="get" theme="simple">
		<table>
			<tr>
				<td>
					Name:
					<s:textfield name="name" />
				</td>
				<td>
					<s:fielderror key="length.error" />
				</td>
			</tr>
			<tr>
				<td>
					Score:
					<s:textfield name="score" />
				</td>
				<td>
					<s:fielderror key="range.error" />
				</td>
			</tr>
		</table>
		<s:submit value="submit" />
	</s:form>


	<s:if test="name==null">
		<s:if test="score==null">

			<h3>
				请提交你要检测的数据
			</h3>
		</s:if>
	</s:if>
	<s:else>
		<h3>
			你提交的数据是
		</h3>
		<table>
			<tr>
				<td>
					Name:
					<s:property value="name" />
				</td>
			</tr>
			<tr>
				<td>
					Score:
					<s:property value="score" />
				</td>
			</tr>
		</table>
	</s:else>

</html>